//
// Created by wkm on 2023-12-03.
//

#ifndef MYSYSTEMCLEARNING_ADDER_WITH_CARRY_H
#define MYSYSTEMCLEARNING_ADDER_WITH_CARRY_H

#include "systemc.h"

SC_MODULE(adder_with_carry) {
    sc_in<sc_int<4> > arb, tbe;
    sc_out<sc_int<4> > sum;
    sc_out<bool> carry_out;

    void prc_adder_with_carry();

    SC_CTOR(adder_with_carry) {
        SC_METHOD(prc_adder_with_carry);
        sensitive << arb << tbe;
    }
};

#endif //MYSYSTEMCLEARNING_ADDER_WITH_CARRY_H
